﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Smallerp.Contracts.DataContracts
{
    [DataContract]
    public class PhotoSeach_DCT : PhotoDCT
    {
        [DataMember]
        public string OrderProductName { get; set; }
        [DataMember]
        public string BoardPath { get; set; }
        [DataMember]
        public string BoardName
        {
            get
            {
                if (string.IsNullOrEmpty(BoardPath))
                {
                    return "";
                }
                else
                {
                    string a=BoardPath.Substring(0,BoardPath.LastIndexOf("."));
                    return a;
                }
            }
        }
        [DataMember]
        public string ToPath { get; set; }
        [DataMember]
        public int OrderNumInProduct { get; set; }
        [DataMember]
        public int BoardID { get; set; }
    }
}
